<?php
/**
 * created by zzy
 * date: 2017/11/27 10:46
 */

namespace App\Http\Admin\Auto\Controllers;
use Framework\BaseClass\Http\Admin\Controller;

class IndexController extends Controller
{
    public function companyWorkFlow()
    {
        //获取工厂列表
        $companyList = \App\Eloquent\Ygt\Company::all()->toArray();
        foreach ($companyList as $companyRow){
            $companyId = $companyRow['id'];
            \App\Engine\WorkFlow::companyWorkFlowCreate($companyId);
        }

        echo '执行成功';die();
    }

}